#include "epollCtl.h"

int epollAdd(int epfd, int fdToAdd)
{
    struct epoll_event event;
    event.data.fd = fdToAdd;
    event.events = EPOLLIN;
    epoll_ctl(epfd, EPOLL_CTL_ADD, fdToAdd, &event);
    return 0;
}

int epollDel(int epfd, int fdToDel)
{
    epoll_ctl(epfd, EPOLL_CTL_DEL, fdToDel, NULL);
    return 0;
}
